package com.rc.mutievcharger.dto.ylevcharger.terminal;

import com.rc.evcharger.common.annotation.ByteLength;
import com.rc.evcharger.common.base.yl.BaseYlCommand;
import com.rc.mutievcharger.dto.ylevcharger.terminal.req.YlTransactionsCommandReq;

/**
 * Create by Yang on 2021/4/27
 * (CMD=401)服务器查询充电桩历史充电记录
 * <p>
 * 注： 1．一次只能查询一条充电记录。
 * 2．查询记录起始索引不能超过充电桩中最大的充电记录条数。
 */
public class YlTransactionsCommandResp extends BaseYlCommand {

    @ByteLength(length = 2)
    private String obligate1; //预留字段1
    @ByteLength(length = 2)
    private String obligate2; //预留字段1
    @ByteLength(length = 1)
    private String gunNum; //充电口号
    @ByteLength(length = 32)
    private String card; //充电卡号

    public YlTransactionsCommandResp(YlTransactionsCommandReq tcq) {
        this.obligate1 = "00 00";
        this.obligate2 = this.obligate1;
        this.gunNum = tcq.getGunNum();
        this.card = tcq.getCard();
    }

    public String getObligate1() {
        return obligate1;
    }

    public void setObligate1(String obligate1) {
        this.obligate1 = obligate1;
    }

    public String getObligate2() {
        return obligate2;
    }

    public void setObligate2(String obligate2) {
        this.obligate2 = obligate2;
    }

    public String getGunNum() {
        return gunNum;
    }

    public void setGunNum(String gunNum) {
        this.gunNum = gunNum;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }
}
